// Fonts
//@import url('https://fonts.googleapis.com/css?family=Nunito');
@import "~bootstrap/scss/bootstrap-reboot";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/modal";

@tailwind base;

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

$linear-1: linear-gradient(155deg, #35c4c8, #4890ec);
$linear-2: linear-gradient(155deg, #9bef8e, #35c4c8, #4890ec, #6963ef);
$linear-3: linear-gradient(155deg, #4890ec, #6963ef);
$linear-4: linear-gradient(155deg, #f31e5a, #ffbe33);
.full-ribbon-bar {
  height: 2px;
  background: #3478e9;
  background: linear-gradient(90deg, #9fc, #3c9, #36f, #f66);
}

.card.primary:hover {
  background: $linear-4;
}

.card.secondary:hover {
  background: $linear-3;
}

.card.practise:hover {
  background: $linear-1;
}

.career-select {
  @keyframes morph {
    0% {
      border-radius: 26% 74% 49% 51% / 21% 51% 49% 79%;
    }
    25% {
      border-radius: 74% 26% 50% 50% / 53% 29% 71% 47%;
    }
    50% {
      border-radius: 48% 52% 28% 72% / 45% 71% 29% 55%;
    }
    75% {
      border-radius: 48% 52% 76% 24% / 70% 49% 51% 30%;
    }
    100% {
      border-radius: 26% 74% 49% 51% / 21% 51% 49% 79%;
    }
  }

  .careers {
    display: flex;
    flex-wrap: wrap;
    .item {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 140px;
      height: 140px;
      //line-height: 140px;
      padding: 10px;
      text-align: center;
      cursor: pointer;
      border-radius: 50% 50% 22% 78% / 43% 34% 66% 57%;
      transition: all linear .1s;
      &.learned, &.selected, &.forget {
        animation: morph 4s infinite;
      }
      &.learned {
        background-color: #dbf0f9;

      }
      &.selected {
        background: linear-gradient(155deg, rgb(55, 123, 238), rgb(24, 192, 228));
        color: white;

      }
      &.forget {

        color: white;

      }
      a {
        display: block;
        &:hover {
          color: #333;
        }
      }
      .pic {
        width: 96px;
        height: 93px;
        margin: 0 auto 8px;
        overflow: hidden;

        img {
          display: block;
          width: 96px;
          height: 93px;
        }
      }

    }
  }

  h1 {
    display: inline-block;
    border-bottom: 4px solid #3ace7f;
    color: #3ace7f;
    font-size: 30px;
  }
}

.header {
  @apply text-white py-4;

  background: url("../images/header_bg.jpg") no-repeat center center;
  h1 {
    @apply text-4xl;
  }
}

.button-wrap {
  margin-left: auto;
  margin-right: auto;

  position: relative;

  width: 120px;
  &:before {
    display: block;
    content: '';
    width: 120px;
    height: 50px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    background-color: #ddd;
    transform: skewX(-33deg);
  }
  &.primary {
    &:before {
      background: linear-gradient(155deg, #9bef8e, #35c4c8, #4890ec, #6963ef);
    }
  }
  &.danger {
    &:before {
      background: $linear-4;
    }
  }
  .button {
    position: relative;
    z-index: 3;
    font-size: 18px;
    width: 120px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
  }
}

.card {
  .title {
    @apply text-2xl;
    color: #4F52E5;
  }

  background-color: #EAEBFC;

  @apply p-2 rounded m-1 block;
  &:hover {
    background: $linear-3;
    color: #EAEBFC;
    .title {
      color: #fff;
    }
  }
}

a.card:hover {
  @apply no-underline;
}

.btn {
  @apply inline-block no-underline;
}

a.btn:hover {
  @apply no-underline;
}

.btn-outline {
  @apply border rounded px-4;
}

.btn-white {
  @apply border-white;
}

.btn-white:hover {
  @apply bg-white text-black;
}

code, pre {
  color: #f8f8f2;
  background: #384548;
  font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none
}

pre {
  padding: 1.5em 35px;
  margin: .5em 0;
  overflow: auto;
  border-radius: .3em
}

:not(pre) > code, pre {
  background: #384548
}

:not(pre) > code {
  padding: .1em;
  border-radius: .3em;
  white-space: normal
}

h2.title {
  background: url(../images/title_dot.png) no-repeat 0 100%;
  height: 62px;
  line-height: 62px;
  padding-left: 23px;
  @apply text-3xl;
  .white {
    @apply text-white;
  }
}

.nav-wrap {
  height: 50px;
}

.nav {

  display: flex;
  justify-content: space-between;
  .title, .user {
    padding: 15px;
  }

}

.toasted-container.top-center {
  top: 30px !important;
}

.tree-toast {
  @apply text-white py-2 rounded-lg shadow-lg;
}

//
//.toasted.default {
//  @apply bg-primary tree;
//}

.toasted.success {
  @apply bg-green tree-toast;
}

.toasted.error {
  @apply bg-red tree-toast;
}

//.toasted.info {
//  @apply bg-info tree;
//}
//
//.toasted .action {
//  @apply nova-action !important;
//}
@import "~video.js/dist/video-js.css";

@tailwind components;

@tailwind utilities;